package beanstao.util.type.base;

import java.util.Map;

import net.sf.json.JSONObject;

import beanstao.util.exception.technical.util.reflect.FailToCastObjectException;
import beanstao.util.type.Castor;

@SuppressWarnings({ "rawtypes" })
public class Map2String extends Castor<Map, String>
{

	@Override
	public String cast(Map src, Class<?> toType, String... args) throws FailToCastObjectException
	{
		return JSONObject.fromObject(src).toString();
	}

}
